#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QStackedWidget>
#include <QVBoxLayout>
#include <QPushButton>

#include "start_index.h"
#include "choose_level.h"
#include "game_view.h"
#include "choose_hero.h"
#include "rest.h"
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT
public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
void resizeEvent(QResizeEvent *event);
void setBackgroundImage(const QString &imagePath);
private slots:
    void showPage2();
    void showPage3();
    void goToChooseHero();
    void goTostartgame();
    void rest();

private:
    Ui::Widget *ui;
    QStackedWidget *stackedWidget;
    start_index *startindex;
    choose_level *chooselevel;
    game_view *gameview;
    choose_hero *choosehero;
    class rest * Rest;
};

#endif // WIDGET_H
